package com.example.its2021606134chh.HighSpeedETCModule;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.example.its2021606134chh.R;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link HighSpeedETCFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class HighSpeedETCFragment extends Fragment {

    // TODO: Rename parameter arguments, choose names that match
    // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
    private static final String ARG_PARAM1 = "title";
    private static final String ARG_PARAM2 = "param2";


    // TODO: Rename and change types of parameters
    private String mParam1;
    private String mParam2;
    private TextView textView18;
    private ImageView imageView3;
    private AlwaysMarqueeTextView textView19;
    private View view9;
    private ImageView imageView4;
    private TextView textView26;
    private ImageView imageView5;
    private TextView textView27;
    private ImageView imageView9;
    private TextView textView28;

    public HighSpeedETCFragment() {
        // Required empty public constructor
    }

    /**
     * Use this factory method to create a new instance of
     * this fragment using the provided parameters.
     *
     * @param param1 Parameter 1.
     * @param param2 Parameter 2.
     * @return A new instance of fragment HighSpeedETCFragment.
     */
    // TODO: Rename and change types and number of parameters
    public static HighSpeedETCFragment newInstance(String param1, String param2) {
        HighSpeedETCFragment fragment = new HighSpeedETCFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
            mParam2 = getArguments().getString(ARG_PARAM2);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_high_speed_e_t_c, container, false);
        textView18 = (TextView) view.findViewById(R.id.textView18);
        imageView3 = (ImageView) view.findViewById(R.id.imageView3);
        textView19 = (AlwaysMarqueeTextView) view.findViewById(R.id.textView19);
        view9 = (View) view.findViewById(R.id.view9);
        imageView4 = (ImageView) view.findViewById(R.id.imageView4);
        textView26 = (TextView) view.findViewById(R.id.textView26);
        imageView5 = (ImageView) view.findViewById(R.id.imageView5);
        textView27 = (TextView) view.findViewById(R.id.textView27);
        imageView9 = (ImageView) view.findViewById(R.id.imageView9);
        textView28 = (TextView) view.findViewById(R.id.textView28);
        textView19.setText("沈海高速胶州、莱西服务器封闭施工通知 从市高速公路管理处获悉，" +
                "按照青岛市“美丽青岛行动”交通环境提升工作总体安排，" +
                "沈海高速胶州、莱西服务区提升改造工程将于今日正式实施。" +
                "项目实施之后，市民在沈海高速服务区停车休息时将享受到更加舒适便捷的环境。 " +
                "据了解，此次提升改造工程将持续至6月30日。" +
                "施工期间，施工人员将对地面、站房、绿化等进行维修和综合整治。" +
                "服务区将封闭施工，不对外营业，提醒途经沈海高速胶州、莱西段的司乘人员提前做好行车规划。");
        // Inflate the layout for this fragment
        return view;
    }

    private void initView() {

    }
}